package com.design.movieticket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.design.movieticket.entity.Income;

public interface IncomeService {
    /** 收入信息分页查询 */
    public LambdaQueryWrapper buildQuery(Income income);

    /** 分页相关 */
    public <E extends IPage<Income>> E page(E page, Wrapper<Income> queryWrapper);

    /** 新增或更新收入数据 */
    public void addOrUpdateIncomeInfo(Income income);

    /** 获取收入信息详情 */
    public Income getIncomeDetail(long id);

    /** 删除收入信息 */
    public void delIncomeById(long id);
}
